function act() {
    if (cm.getNumberFromQuestInfo(100346, "saved") > 0) {
        cm.playerMessage(5, "已成功送走居民。快去解救其他居民吧。");
        cm.fieldEffect_SaveEff("Effect/EventEffect.img/rescueSoldier/saveEffect/0");
        cm.fieldEffect_PlayFieldSound("Sound/MiniGame.img/Result_Yut", 100);
        cm.addNumberForQuestInfo(100346, "saved", -1);
        cm.addNumberForQuestInfo(100346, "escape", 1);
        if (cm.getNumberFromQuestInfo(100346, "girl") > 0) {
            var a = cm.addNumberForQuestInfo(100346, "girl", -1);
            var b = ["（抽泣）谢谢你，" + (cm.getPlayer().getGender() == 0 ? "哥哥" : "姐姐") + "。", (cm.getPlayer().getGender() == 0 ? "哥哥" : "姐姐") + "！进入这里就安全了对吗？那我要快点进去！"];
            cm.addPopupSay(9062215, 1000, b[cm.rand(0, b.length - 1)], "", 0);
            cm.setPartner(0, 9062215 + a * 100 + 100, 0, 0)
        } else {
            if (cm.getNumberFromQuestInfo(100346, "boy") > 0) {
                var a = cm.addNumberForQuestInfo(100346, "boy", -1);
                var b = ["请你快把我的朋友们也救出来吧！顺便转告说我在那里等他们！", "得救了！之前真是吓死我了！", "现在安全了吗？" + (cm.getPlayer().getGender() == 0 ? "哥哥" : "姐姐") + "谢谢你！"];
                cm.addPopupSay(9062214, 1000, b[cm.rand(0, b.length - 1)], "", 0);
                cm.setPartner(0, 9062214 + a * 100 + 100, 0, 0)
            } else {
                if (cm.getNumberFromQuestInfo(100346, "women") > 0) {
                    var a = cm.addNumberForQuestInfo(100346, "women", -1);
                    var b = ["你确定那里没有可怕的敌人吗？", "谢谢你前来解救我们！", "希望大家都能安全躲避！"];
                    cm.addPopupSay(9062213, 1000, b[cm.rand(0, b.length - 1)], "", 0);
                    cm.setPartner(0, 9062213 + a * 100 + 100, 0, 0)
                } else {
                    if (cm.getNumberFromQuestInfo(100346, "man") > 0) {
                        var a = cm.addNumberForQuestInfo(100346, "man", -1);
                        var b = ["你确定另一头安全吗？", "希望其他人也全都平安无事！", "谢谢你救了我！"];
                        cm.addPopupSay(9062212, 1000, b[cm.rand(0, b.length - 1)], "", 0);
                        cm.setPartner(0, 9062212 + a * 100 + 100, 0, 0)
                    }
                }
            }
        }
    } else {
        cm.playerMessage(5, "没有需要解救的居民。");
        cm.playerMessage(-1, "没有需要解救的居民。")
    }
    cm.getReactor().delayedDestroyReactor(2);
    eim.schedule("传送门出现", cm.rand(2, 7) * 1000)
}
var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(e, d, c) {
    if (status == 0 && e == 0) {
        cm.dispose();
        return
    }(e == 1) ? status++ : status--;
    selectionLog[status] = c;
    var b = -1;
    if (status <= b++) {
        cm.dispose()
    } else {
        if (status === b++) {
            var f = cm.getReactor().getId();
            var a = cm.getReactor().getName();
            cm.sendOk("这个传送点 [" + f + " : " + a + "] 的脚本尚未修复。\r\n脚本位于： 脚本/反应堆/9939050.js ", 0)
        } else {
            cm.dispose()
        }
    }
};